﻿using Global.Core.Validation;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Global.Const;

namespace ViewModels.Career
{
    public class NeedHelpModel
    {
        [Required(ErrorMessage = "* 不能为空")]
        public string KeyWords { get; set; }

        [Required(ErrorMessage = "* 不能为空")]
        public string Province { get; set; }

        [Required(ErrorMessage = "* 不能为空")]
        public string City { get; set; }

        [Required(ErrorMessage = "* 不能为空")]
        public int BirthYear { get; set; }

        [Required(ErrorMessage = "* 不能为空")]
        public DateTime From { get; set; }

        [Required(ErrorMessage = "* 不能为空")]
        [GreaterThan("From", ErrorMessage = "* 目标结束时间必须大于开始体验时间")]
        public DateTime To { get; set; }
        public bool Gender { get; set; }
        public string Description { get; set; }
        public bool Offer { get; set; }
    }
}
